define([
    'common',
    'router',
    'global'
], function (angularAMD, registerRoutes, app) {
    'use strict';
    app.config(['$stateProvider', '$urlRouterProvider', registerRoutes]);
    /**
     * 解决 angular 1.6.1 与 ui router 默认的# 变为 #！的bug
     */
    app.config(['$locationProvider', function ($locationProvider) {
        $locationProvider.hashPrefix('');
    }]);
    return angularAMD.bootstrap(app);
});